//引入人家已经封装好的axios
import request from '../../utils/request';
import category from '../category'
//枚举书写用户相关的接口
enum API {
    INDEX = "/xhr/index.json?__timestamp=1630131808529",//登录接口
    category = "/item/list.json?__timestamp=1630136511866&categoryId=",//获取分类信息
    categories = "/item/list.json?__timestamp=1630136511866&categoryId=1005000",//获取分类信息
}
//获取首页信息
export const reqIndex = () => request.get<any, any>(API.INDEX);
//category
export const reqCategory = (categoryId:string) => request.post<any, any>(API.category+categoryId); 